import sys
import pytest

# if sys.platform == "win32":
#     pytest.skip('win中该文件跳过', allow_module_level=True)
#
#
# class TestCase:
#     def test_case1(self):
#         print("test_case1---skip")
#
#     def test_case2(self):
#         print("test_case2---skip")
#
#
# def test_case3():
#     print("test_case3---skip")
#
#
# def test_case4():
#     print("test_case4---skip")


# ----------------  写法2

import pytest

pytestmark = pytest.mark.skip(reason="win中该模块跳过")


class TestCase:
    def test_case1(self):
        print("test_case1---skip")

    def test_case2(self):
        print("test_case2---skip")


def test_case3():
    print("test_case3---skip")


def test_case4():
    print("test_case4---skip")